package main

import (
	"fmt"
	"sort"
)

func main() {
	/*
		m := make(map[int]string)
		m[1] = "ok"
		a := m[1]
		delete(m, 1)
		fmt.Println(m)
		fmt.Println(a)
	*/
	map1 := map[int]string{}
	m1 := map[int]string{1: "a", 2: "b", 3: "c", 4: "d", 5: "e", 6: "f", 7: "g"}
	m2 := map[string]int{}
	fmt.Println(m2)
	s1 := make([]string, len(m1))
	i := 0
	for k, v := range m1 {
		s1[i] = m1[k]
		i++
		m2[v] = i
	}
	sort.Strings(s1)
	fmt.Println(map1)
	fmt.Println(s1)
	fmt.Println(m1)
	fmt.Println(m2)
}
